package main

import (
	"fmt"
	"github.com/olivere/elastic/v7"
)

func main() {
	// 创建ElasticSearch客户端
	client, err := elastic.NewClient(
		elastic.SetURL("http://162.14.70.254:9200"),
		elastic.SetSniff(false))
	if err != nil {
		panic(err)
	}
	// 输出client
	fmt.Println("hello world", client)
}
